module("BnbConstants")

--[[
Level constants.
--]]
Level = {
  BnbMagic = "BNBMAP",
  TileSetName = "BnB-TS",
  LayersNames = {
    top = "top",
    bottom = "bottom"
  },
  LayersNumber = 2,
  ObjectTypes = {
    brick1 = "BRICK_1",
    brick2 = "BRICK_2",
    brick3 = "BRICK_3",
    brick4 = "BRICK_4",
    brick5 = "BRICK_5",
    brickEnergy = "BRICK_E",
    brickWall = "BRICK_X",
    brickB = "BRICK_B",
    brickL = "BRICK_L",
    brickA = "BRICK_A",
    brickS = "BRICK_S",
    brickT = "BRICK_T",
    brickWarp = "BRICK_W",
    brickMultiBall = "BRICK_M",
    brickSuperBumpers = "BRICK_O",
    bumperTop = "BUMPER_TOP",
    bumperBottom = "BUMPER_BOTTOM",
    attractorTop = "ATTRACT_TOP",
    attractorBottom = "ATTRACT_BOTTOM"
  },
  --[[
    Used by the collision engine.
    --]]
  CollisionTags = {
    rectangle = "R",
    circle = "C",
    repulse = "+",
    attract = "-"
  }
}

--[[
Messages.
--]]
Messages = {
  Errors = {
    Level = {
      CONSISTENCY = "Level is not compliant with BnB.",
      NUMBER_OF_LAYERS = "Wrong number of layers.",
      COLTAGS_MISSING = "Missing collision tag.",
      INVALID_TILE_ID = "Invalid tile id.",
      MAP_NIL = "Provided map is nil.",
      WRONG_TILESET = "Wrong tileset name, expected \"BnB-TS\""
    }
  }
}

-- Contains the current error message, set by the latest function in error.
bnbError = ""
-- Same remark.
bnbErrorDetails = {}

